import { watchEffect, nextTick } from 'vue'

export default function(...Scrolls) {
  // 在挂在阶段开始监视这个滚动
  watchEffect(() => {
    nextTick(() => {
      Scrolls.forEach(scroll => {
        scroll.value && scroll.value.refresh()
      })
    })
  })
}
